﻿@using Ganss.XSS
@using HynuIOTA.Entity
@{
    News news = ViewBag.news;

    var sanitizer = new HtmlSanitizer();
}
<div id="detail2-box" class="clearfix">
    <div id="news-center" class="tabula-box"></div>
    <div class="content-box">
        <div class="lm_wz ">
            <h2>协会新闻</h2>
            <p><a href="@Url.Content("~/Home/Index")">首页</a>&gt;<a href="@Url.Content("~/News/1.shtml")">协会新闻</a>&gt;正文</p>
        </div>
        <h1><b>@news.Title</b></h1>
        <div class="news-info">发布时间：@news.CreateTime 发布人：@news.User.UserName 点击量：@news.Click 次</div>
        <div class="content">
            @Html.Raw(sanitizer.Sanitize(news.Content))
        </div>
        <div class="n-p-box clearfix">
        </div>
    </div>
</div>
@section script
{
    <script>
        $('#news-center').load('@Url.Action("NewsChannelView","Home")');
    </script>
}

